package com.yjc.drygoods.product.feign;

import com.yjc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author yjc
 * @create 2022-09-07 15:00
 */
@FeignClient("drygoods-ware")
public interface WareFeignService {

    @PostMapping("/ware/warespu/hasstock")
    R getSkuWare(@RequestBody List<Long> skuIds);

    @PostMapping("/ware/warespu/single/hasstock")
    boolean getSingleSpuWare(@RequestBody Long spuId);
}
